﻿<UserControl xmlns:PageBar="clr-namespace:Mengsk.ProxyDelivery.App.UI.PageBar"  x:Class="Mengsk.ProxyDelivery.App.UI.Accounting.SellerRefundUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="1400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <TextBlock Text="退款编号:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Name="tbId" Margin="3" VerticalAlignment="Center" Width="100"/>
            <TextBlock Text="订单编号:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Name="tbOrderId" Margin="3" VerticalAlignment="Center" Width="100"/>
            <TextBlock Text="退货编号:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Name="tbOrderChangeId" Margin="3" VerticalAlignment="Center" Width="100"/>
            <TextBlock Text="卖家编号:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Name="tbSellerId" Margin="3" VerticalAlignment="Center" Width="100"/>
            <TextBlock Text="操作员:" Margin="3" VerticalAlignment="Center"/>
            <TextBox  Name="tbOperator" Margin="3" Width="100" VerticalAlignment="Center"/>
            <TextBlock Text="创建时间:" Margin="3" VerticalAlignment="Center" />
            <DatePicker Name="dpStart" Margin="3" VerticalAlignment="Center" Width="120"/>
            <TextBlock Text="到:" Margin="3" VerticalAlignment="Center"/>
            <DatePicker Name="dpEnd" Margin="3" VerticalAlignment="Center" Width="120"/>
            <Button Name="btnSearch" Content="查询" VerticalAlignment="Center" Width="60" Click="btnSearch_Click"/>
        </StackPanel>

        <DataGrid Grid.Row="1" AutoGenerateColumns="False" IsReadOnly="True" GridLinesVisibility="All" Name="dgvItems">
            <DataGrid.Columns>
                <DataGridTextColumn Header="退款编号" Binding="{Binding Id}"/>
                <DataGridTextColumn Header="卖家编号" Binding="{Binding SellerId}"/>
                <DataGridTextColumn Header="退换货编号" Binding="{Binding OrderChangeId}"/>
                <DataGridTextColumn Header="订单编号" Binding="{Binding OrderId}"/>
                <DataGridTextColumn Header="子订单编号" Binding="{Binding OrderGoodsId}"/>
                <DataGridTextColumn Header="总金额" Binding="{Binding TotalMoney}"/>
                <DataGridTextColumn Header="商品金额" Binding="{Binding GoodsMoney}"/>
                <DataGridTextColumn Header="退运费金额" Binding="{Binding DeliveryMoney}"/>
                <DataGridTextColumn Header="补运费金额" Binding="{Binding RefundDeliveryMoney}"/>
                <DataGridTextColumn Header="服务费用" Binding="{Binding ServiceMoney}"/>
                <DataGridTextColumn Header="礼品费用" Binding="{Binding GiftMoney}"/>
                <DataGridTextColumn Header="短信费用" Binding="{Binding MessageMoney}"/>
                <DataGridTextColumn Header="操作员" Binding="{Binding Operator}"/>
                <DataGridTextColumn Header="创建时间" Binding="{Binding CreateTime,Converter={StaticResource datetimeConverter}}"/>
                <DataGridTextColumn Header="描述" Binding="{Binding Comment}" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>

        <PageBar:PageBarUserControl Grid.Row="2" x:Name="pbBar" PageSize="200" PageChanging="pbBar_PageChanging" />
    </Grid>
</UserControl>
